package javaoop第二章;
  // 教员类
public class Teacher{
    String tname;
    String major;
    String course;
    int schoolAge;
    
    public void teaShow() {
    	System.out.println("教员姓名为："+tname+
    			"\t专业为："+major+
    			"\t教授课程为："+course+
    			"\t教龄"+schoolAge);
    	
    }
}

